package com.hyp.service.impl;

import com.hyp.mapper.CartMapper;
import com.hyp.service.CartService;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CartServicelmpl implements CartService {
    @Autowired
    private CartMapper cartMapper;

    @Override
    public void addcart(Integer userId, Integer productId) {
        cartMapper.addcart(userId,productId);
    }
}
